import request from '@/utils/request'

// 查询评分权重列表
export function listWeight(query) {
  return request({
    url: '/app/weight/list',
    method: 'get',
    params: query
  })
}

// 查询评分权重详细
export function getWeight(id) {
  return request({
    url: '/app/weight/query/' + id,
    method: 'get'
  })
}

// 新增评分权重
export function addWeight(data) {
  return request({
    url: '/app/weight/add',
    method: 'post',
    data: data
  })
}

// 修改评分权重
export function updateWeight(data) {
  return request({
    url: '/app/weight/edit',
    method: 'post',
    data: data
  })
}

// 删除评分权重
export function delWeight(id) {
  return request({
    url: '/app/weight/remove/' + id,
    method: 'delete'
  })
}

// 导出评分权重
export function exportWeight(query) {
  return request({
    url: '/app/weight/export',
    method: 'get',
    params: query
  })
}
